﻿<cfcomponent>
	<cffunction access="remote" name="humanize" returnformat="plain" returntype="String">
		<cfargument name="number" required="true" type="numeric">

		<cfswitch expression="#arguments.number#">
			<cfcase value="0">
				<cfreturn "zero">
			</cfcase>
			<cfcase value="1">
				<cfreturn "ONE">
			</cfcase>
			<cfcase value="2">
				<cfreturn "Two">
			</cfcase>
			<cfcase value="3">
				<cfreturn "three">
			</cfcase>
			<cfdefaultcase>
				<cfreturn "unknown">
			</cfdefaultcase>
		</cfswitch>
	</cffunction>
</cfcomponent>